<?php
/**
 * Model class
 *
 * @access 	public
 * @author 	Rob
 * @copyright	ResMania 2009 all rights reserved.
 * @version	1.0
 * @link		http://developer.resmania.com/api
 * @since  	11-2010
 */
class RM_HospitalityPricesColumns extends RM_Model
{
    protected $_name = 'rm_hospitality_prices_columns';

    /**
     * Returns all enabled columns
     *
     * @param bool $weekendEnabled
     * @return Zend_Db_Table_Rowset_Abstract
     */
    public function fetchAllEnabled($weekendEnabled = true){
        $select = $this->select()->where('enabled=1');
        if (!$weekendEnabled) {
            $select->where('name!=?', "weekend_price");
        }
        return $this->fetchAll($select->order("order ASC"));
    }
}